package com.hb.software.worker.dao;

import com.hb.software.dao.BaseDao;
import com.hb.software.entity.worker.Worker;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WorkerDao extends BaseDao<Worker, Long> {
    /**
     * @param name
     * @return list
     */
    public List<Worker> findByName(String name);

    /**
     * @param phone
     * @return list
     */
    public List<Worker> findByPhone(String phone);

    /**
     * @param did
     * @return list
     */
    public List<Worker> findByDepartment(Long did);

}
